package com.chengqj.userserverprovider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

import java.io.IOException;

@SpringBootApplication
@ImportResource({"classpath:META-INF/spring/dubbo-provider.xml"})
public class UserServerProviderApplication {

    public static void main(String[] args) throws IOException {
        SpringApplication application = new SpringApplication(UserServerProviderApplication.class);
        application.setWebApplicationType(WebApplicationType.NONE);
        application.run(args);
        System.in.read();
//        SpringApplication.run(UserServerProviderApplication.class, args);
    }
}
